package com.ysd.crm.utils;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MvcUtil {
	
	/**
	 * 	传入要加工成bean类
	 * @param beanClass
	 * @return bean
	 */
	public static ClassPathXmlApplicationContext getContext() {
		//配置SpringMVC整合MyBatis配置文件路径
		String classPath = "test_config/applicationContext.xml";
		return new ClassPathXmlApplicationContext(classPath);
	}
	
//	public static void main(String[] args) {
//		UsersService us = (UsersService) MvcUtil.getBean("usersServiceImpl");
//		Object data = us.getTestMybatis();
//		System.out.println(data);
//	}
}
